<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class Notice
 * 
 * @property int $id
 * @property int $hall_id
 * @property int $admin_user_id
 * @property string $admin_username
 * @property int $send_type
 * @property int $type
 * @property string $recipient
 * @property string $title
 * @property string $content
 * @property int $popup_type
 * @property string $picture
 * @property int $status
 * @property \Carbon\Carbon $begin_time
 * @property \Carbon\Carbon $end_time
 * @property int $time_interval
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class Notice extends Eloquent
{
	protected $table = 'notice';

	protected $casts = [
		'hall_id' => 'int',
		'admin_user_id' => 'int',
		'send_type' => 'int',
		'type' => 'int',
		'popup_type' => 'int',
		'status' => 'int',
		'time_interval' => 'int'
	];

	protected $dates = [
		'begin_time',
		'end_time'
	];

	protected $fillable = [
		'hall_id',
		'admin_user_id',
		'admin_username',
		'send_type',
		'type',
		'recipient',
		'title',
		'content',
		'popup_type',
		'picture',
		'status',
		'begin_time',
		'end_time',
		'time_interval'
	];
}
